﻿//-----------------------------------------------------------------------
// <copyright file="CorporationCommentFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.CorporationModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.ProprietorModule;

    public static class CorporationCommentFactory
    {
        public static CorporationComment CreateCorporationComment(
                                            Corporation corporation, 
                                            Proprietor commentator, 
                                            string content, 
                                            int infoAuthentic,
                                            int serviceAttitude, 
                                            int nannyQuality, 
                                            bool isDeleted, 
                                            CorporationIdentifier.CheckedStatus checkedStatus, 
                                            DateTime editTime, 
                                            string editUser)
        {
            CorporationComment corporationComment = new CorporationComment();
            corporationComment.CheckedStatus = checkedStatus;
            corporationComment.Proprietor = commentator;
            corporationComment.Content = content;
            corporationComment.Corporation = corporation;
            corporationComment.EditTime = editTime;
            corporationComment.EditUser = editUser;
            corporationComment.InfoAuthentic = infoAuthentic;
            corporationComment.IsDeleted = isDeleted;
            corporationComment.NannyQuality = nannyQuality;
            corporationComment.ServiceAttitude = serviceAttitude;
            corporationComment.CreateTime = DateTime.Now;

            return corporationComment;
        }
    }
}
